package com.deer.im.listener;

import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;

import com.deer.im.util.InjectServiceUtil;

/**
 * 监听消息
 * @author deer
 * @date 2022年3月17日
 */
public class TopicListener implements MessageListener {

    @Override
    public void onMessage(Message message, byte[] bytes) {
        System.out.println("我是Topic监听" + message.toString());
        InjectServiceUtil.getInstance().sendMessage().send(message.toString());
    }
}


